package com.ddtj.demo1.dao;

import com.ddtj.demo1.entity.Book;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface BookRepository extends ElasticsearchRepository<Book,String> {
    List<Book> findBookByNameIsLikeAndAuthorIsLike(Book book);
    List<Book> findBookByNameIsLikeAndAuthorIsLike(Book book, Pageable pageable);
}
